<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>复合选择器之伪类选择器</title>
    <style>
        body {
            color: red;
        }

        a {
            color: #333333;
            text-decoration: none;
        }

        a:hover {
            color: #336699;
            text-decoration: underline;
        }
    </style>
</head>

<body>
    <a href="#">小猪佩奇</a>
    <a href="http://www.baicdcdcdcdu.com">百度一下</a>
</body>

</html>